import { get, post, formData } from "@/api/services/formReq";

// 分类创建
export const sourceCreate = params => post("/source/create", params);

// 分类修改
export const sourceChange = params => post("/source/change", params);

// 分类分级列表筛选
export const childataFilter = params => post("/v1/childata/filter", params);

// 分类查询接口(下拉)
export const childataSelect = params => post("/source/next/one", params);

// 数据级别，敏感度等级，保护等级下拉根据types
export const dropDownSelect = params => post("/v1/DropDown", params);

// 分类查询接口
export const sourceSuperior = params => post("/source/superior", params);

// 分类分级树状图数据
export const sourceTree = params => post("/source/tree", params);


// 分类分类删除
export const sourceDelete = params => post("/source/delete", params);

// 数据项创建
export const childdataCreate = params => post("/childdata/create", params);

// 数据项修改
export const childdataChange = params => post("/childdata/change", params);

// 分类查询（二级+数据项，数据项搜索）
export const dccDataItemsSelect = params => post("/v1/childata/dccDataItemsSelect", params);

// 根据数据项查数据级别和敏感度
export const childataItems = params => post("/v1/childata/items", params);

// 数据项删除
export const childataDelete = params => post("/childdata/delete", params);

// 获取分类分级数据项
export const sourceFind = params => post("/source/find", params);

